package com.ktjiaoyu.controller;

import com.ktjiaoyu.pojo.LanguageCategory;
import com.ktjiaoyu.service.LanguageCategoryService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class LanguageCategoryController {

    @Resource
    LanguageCategoryService languageCategoryService;

    @RequestMapping("/findAllLanguageCategory")
    @ResponseBody
    public List<LanguageCategory> findAllLanguageCategory(){
        return languageCategoryService.selectAll();
    }
}
